3.5.89 \(\int (g+h x)^{3/2} (a+b \log (c (d (e+f x)^p)^q))^2 \, dx\) [489]

Optimal. Leaf size=635 \[ \frac {368 b^2 (f g-e h)^2 p^2 q^2 \sqrt {g+h x}}{75 f^2 h}+\frac {128 b^2 (f g-e h) p^2 q^2 (g+h x)^{3/2}}{225 f h}+\frac {16 b^2 p^2 q^2 (g+h x)^{5/2}}{125 h}-\frac {368 b^2 (f g-e h)^{5/2} p^2 q^2 \tanh ^{-1}\left (\frac {\sqrt {f} \sqrt {g+h x}}{\sqrt {f g-e h}}\right )}{75 f^{5/2} h}-\frac {8 b^2 (f g-e h)^{5/2} p^2 q^2 \tanh ^{-1}\left (\frac {\sqrt {f} \sqrt {g+h x}}{\sqrt {f g-e h}}\right )^2}{5 f^{5/2} h}-\frac {8 b (f g-e h)^2 p q \sqrt {g+h x} \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )}{5 f^2 h}-\frac {8 b (f g-e h) p q (g+h x)^{3/2} \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )}{15 f h}-\frac {8 b p q (g+h x)^{5/2} \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )}{25 h}+\frac {8 b (f g-e h)^{5/2} p q \tanh ^{-1}\left (\frac {\sqrt {f} \sqrt {g+h x}}{\sqrt {f g-e h}}\right ) \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )}{5 f^{5/2} h}+\frac {2 (g+h x)^{5/2} \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )^2}{5 h}+\frac {16 b^2 (f g-e h)^{5/2} p^2 q^2 \tanh ^{-1}\left (\frac {\sqrt {f} \sqrt {g+h x}}{\sqrt {f g-e h}}\right ) \log \left (\frac {2}{1-\frac {\sqrt {f} \sqrt {g+h x}}{\sqrt {f g-e h}}}\right )}{5 f^{5/2} h}+\frac {8 b^2 (f g-e h)^{5/2} p^2 q^2 \text {Li}_2\left (1-\frac {2}{1-\frac {\sqrt {f} \sqrt {g+h x}}{\sqrt {f g-e h}}}\right )}{5 f^{5/2} h} \]

[Out]

128/225*b^2*(-e*h+f*g)*p^2*q^2*(h*x+g)^(3/2)/f/h+16/125*b^2*p^2*q^2*(h*x+g)^(5/2)/h-368/75*b^2*(-e*h+f*g)^(5/2
)*p^2*q^2*arctanh(f^(1/2)*(h*x+g)^(1/2)/(-e*h+f*g)^(1/2))/f^(5/2)/h-8/5*b^2*(-e*h+f*g)^(5/2)*p^2*q^2*arctanh(f
^(1/2)*(h*x+g)^(1/2)/(-e*h+f*g)^(1/2))^2/f^(5/2)/h-8/15*b*(-e*h+f*g)*p*q*(h*x+g)^(3/2)*(a+b*ln(c*(d*(f*x+e)^p)
^q))/f/h-8/25*b*p*q*(h*x+g)^(5/2)*(a+b*ln(c*(d*(f*x+e)^p)^q))/h+8/5*b*(-e*h+f*g)^(5/2)*p*q*arctanh(f^(1/2)*(h*
x+g)^(1/2)/(-e*h+f*g)^(1/2))*(a+b*ln(c*(d*(f*x+e)^p)^q))/f^(5/2)/h+2/5*(h*x+g)^(5/2)*(a+b*ln(c*(d*(f*x+e)^p)^q
))^2/h+16/5*b^2*(-e*h+f*g)^(5/2)*p^2*q^2*arctanh(f^(1/2)*(h*x+g)^(1/2)/(-e*h+f*g)^(1/2))*ln(2/(1-f^(1/2)*(h*x+
g)^(1/2)/(-e*h+f*g)^(1/2)))/f^(5/2)/h+8/5*b^2*(-e*h+f*g)^(5/2)*p^2*q^2*polylog(2,1-2/(1-f^(1/2)*(h*x+g)^(1/2)/
(-e*h+f*g)^(1/2)))/f^(5/2)/h+368/75*b^2*(-e*h+f*g)^2*p^2*q^2*(h*x+g)^(1/2)/f^2/h-8/5*b*(-e*h+f*g)^2*p*q*(a+b*l
n(c*(d*(f*x+e)^p)^q))*(h*x+g)^(1/2)/f^2/h

________________________________________________________________________________________

Rubi [A]
time = 2.92, antiderivative size = 635, normalized size of antiderivative = 1.00, number of steps used = 29, number of rules used = 16, integrand size = 30, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.533, Rules used = {2445, 2458, 2388, 65, 214, 2390, 12, 1601, 6873, 6131, 6055, 2449, 2352, 2356, 52, 2495} \begin {gather*} \frac {8 b^2 p^2 q^2 (f g-e h)^{5/2} \text {PolyLog}\left (2,1-\frac {2}{1-\frac {\sqrt {f} \sqrt {g+h x}}{\sqrt {f g-e h}}}\right )}{5 f^{5/2} h}+\frac {8 b p q (f g-e h)^{5/2} \tanh ^{-1}\left (\frac {\sqrt {f} \sqrt {g+h x}}{\sqrt {f g-e h}}\right ) \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )}{5 f^{5/2} h}-\frac {8 b p q \sqrt {g+h x} (f g-e h)^2 \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )}{5 f^2 h}-\frac {8 b p q (g+h x)^{3/2} (f g-e h) \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )}{15 f h}+\frac {2 (g+h x)^{5/2} \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )^2}{5 h}-\frac {8 b p q (g+h x)^{5/2} \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )}{25 h}-\frac {8 b^2 p^2 q^2 (f g-e h)^{5/2} \tanh ^{-1}\left (\frac {\sqrt {f} \sqrt {g+h x}}{\sqrt {f g-e h}}\right )^2}{5 f^{5/2} h}-\frac {368 b^2 p^2 q^2 (f g-e h)^{5/2} \tanh ^{-1}\left (\frac {\sqrt {f} \sqrt {g+h x}}{\sqrt {f g-e h}}\right )}{75 f^{5/2} h}+\frac {16 b^2 p^2 q^2 (f g-e h)^{5/2} \log \left (\frac {2}{1-\frac {\sqrt {f} \sqrt {g+h x}}{\sqrt {f g-e h}}}\right ) \tanh ^{-1}\left (\frac {\sqrt {f} \sqrt {g+h x}}{\sqrt {f g-e h}}\right )}{5 f^{5/2} h}+\frac {368 b^2 p^2 q^2 \sqrt {g+h x} (f g-e h)^2}{75 f^2 h}+\frac {128 b^2 p^2 q^2 (g+h x)^{3/2} (f g-e h)}{225 f h}+\frac {16 b^2 p^2 q^2 (g+h x)^{5/2}}{125 h} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[(g + h*x)^(3/2)*(a + b*Log[c*(d*(e + f*x)^p)^q])^2,x]

[Out]

(368*b^2*(f*g - e*h)^2*p^2*q^2*Sqrt[g + h*x])/(75*f^2*h) + (128*b^2*(f*g - e*h)*p^2*q^2*(g + h*x)^(3/2))/(225*
f*h) + (16*b^2*p^2*q^2*(g + h*x)^(5/2))/(125*h) - (368*b^2*(f*g - e*h)^(5/2)*p^2*q^2*ArcTanh[(Sqrt[f]*Sqrt[g +
 h*x])/Sqrt[f*g - e*h]])/(75*f^(5/2)*h) - (8*b^2*(f*g - e*h)^(5/2)*p^2*q^2*ArcTanh[(Sqrt[f]*Sqrt[g + h*x])/Sqr
t[f*g - e*h]]^2)/(5*f^(5/2)*h) - (8*b*(f*g - e*h)^2*p*q*Sqrt[g + h*x]*(a + b*Log[c*(d*(e + f*x)^p)^q]))/(5*f^2
*h) - (8*b*(f*g - e*h)*p*q*(g + h*x)^(3/2)*(a + b*Log[c*(d*(e + f*x)^p)^q]))/(15*f*h) - (8*b*p*q*(g + h*x)^(5/
2)*(a + b*Log[c*(d*(e + f*x)^p)^q]))/(25*h) + (8*b*(f*g - e*h)^(5/2)*p*q*ArcTanh[(Sqrt[f]*Sqrt[g + h*x])/Sqrt[
f*g - e*h]]*(a + b*Log[c*(d*(e + f*x)^p)^q]))/(5*f^(5/2)*h) + (2*(g + h*x)^(5/2)*(a + b*Log[c*(d*(e + f*x)^p)^
q])^2)/(5*h) + (16*b^2*(f*g - e*h)^(5/2)*p^2*q^2*ArcTanh[(Sqrt[f]*Sqrt[g + h*x])/Sqrt[f*g - e*h]]*Log[2/(1 - (
Sqrt[f]*Sqrt[g + h*x])/Sqrt[f*g - e*h])])/(5*f^(5/2)*h) + (8*b^2*(f*g - e*h)^(5/2)*p^2*q^2*PolyLog[2, 1 - 2/(1
 - (Sqrt[f]*Sqrt[g + h*x])/Sqrt[f*g - e*h])])/(5*f^(5/2)*h)

Rule 12

Int[(a_)*(u_), x_Symbol] :> Dist[a, Int[u, x], x] /; FreeQ[a, x] &&  !MatchQ[u, (b_)*(v_) /; FreeQ[b, x]]

Rule 52

Int[((a_.) + (b_.)*(x_))^(m_)*((c_.) + (d_.)*(x_))^(n_), x_Symbol] :> Simp[(a + b*x)^(m + 1)*((c + d*x)^n/(b*(
m + n + 1))), x] + Dist[n*((b*c - a*d)/(b*(m + n + 1))), Int[(a + b*x)^m*(c + d*x)^(n - 1), x], x] /; FreeQ[{a
, b, c, d}, x] && NeQ[b*c - a*d, 0] && GtQ[n, 0] && NeQ[m + n + 1, 0] &&  !(IGtQ[m, 0] && ( !IntegerQ[n] || (G
tQ[m, 0] && LtQ[m - n, 0]))) &&  !ILtQ[m + n + 2, 0] && IntLinearQ[a, b, c, d, m, n, x]

Rule 65

Int[((a_.) + (b_.)*(x_))^(m_)*((c_.) + (d_.)*(x_))^(n_), x_Symbol] :> With[{p = Denominator[m]}, Dist[p/b, Sub
st[Int[x^(p*(m + 1) - 1)*(c - a*(d/b) + d*(x^p/b))^n, x], x, (a + b*x)^(1/p)], x]] /; FreeQ[{a, b, c, d}, x] &
& NeQ[b*c - a*d, 0] && LtQ[-1, m, 0] && LeQ[-1, n, 0] && LeQ[Denominator[n], Denominator[m]] && IntLinearQ[a,
b, c, d, m, n, x]

Rule 214

Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(Rt[-a/b, 2]/a)*ArcTanh[x/Rt[-a/b, 2]], x] /; FreeQ[{a, b},
x] && NegQ[a/b]

Rule 1601

Int[(Pp_)/(Qq_), x_Symbol] :> With[{p = Expon[Pp, x], q = Expon[Qq, x]}, Simp[Coeff[Pp, x, p]*(Log[RemoveConte
nt[Qq, x]]/(q*Coeff[Qq, x, q])), x] /; EqQ[p, q - 1] && EqQ[Pp, Simplify[(Coeff[Pp, x, p]/(q*Coeff[Qq, x, q]))
*D[Qq, x]]]] /; PolyQ[Pp, x] && PolyQ[Qq, x]

Rule 2352

Int[Log[(c_.)*(x_)]/((d_) + (e_.)*(x_)), x_Symbol] :> Simp[(-e^(-1))*PolyLog[2, 1 - c*x], x] /; FreeQ[{c, d, e
}, x] && EqQ[e + c*d, 0]

Rule 2356

Int[((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))^(p_.)*((d_) + (e_.)*(x_))^(q_.), x_Symbol] :> Simp[(d + e*x)^(q + 1)
*((a + b*Log[c*x^n])^p/(e*(q + 1))), x] - Dist[b*n*(p/(e*(q + 1))), Int[((d + e*x)^(q + 1)*(a + b*Log[c*x^n])^
(p - 1))/x, x], x] /; FreeQ[{a, b, c, d, e, n, p, q}, x] && GtQ[p, 0] && NeQ[q, -1] && (EqQ[p, 1] || (Integers
Q[2*p, 2*q] &&  !IGtQ[q, 0]) || (EqQ[p, 2] && NeQ[q, 1]))

Rule 2388

Int[(((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))^(p_.)*((d_) + (e_.)*(x_))^(q_.))/(x_), x_Symbol] :> Dist[d, Int[(d
+ e*x)^(q - 1)*((a + b*Log[c*x^n])^p/x), x], x] + Dist[e, Int[(d + e*x)^(q - 1)*(a + b*Log[c*x^n])^p, x], x] /
; FreeQ[{a, b, c, d, e, n}, x] && IGtQ[p, 0] && GtQ[q, 0] && IntegerQ[2*q]

Rule 2390

Int[(((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))*((d_) + (e_.)*(x_)^(r_.))^(q_.))/(x_), x_Symbol] :> With[{u = IntHi
de[(d + e*x^r)^q/x, x]}, Simp[u*(a + b*Log[c*x^n]), x] - Dist[b*n, Int[Dist[1/x, u, x], x], x]] /; FreeQ[{a, b
, c, d, e, n, r}, x] && IntegerQ[q - 1/2]

Rule 2445

Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_))^(n_.)]*(b_.))^(p_)*((f_.) + (g_.)*(x_))^(q_.), x_Symbol] :> Simp[(f
 + g*x)^(q + 1)*((a + b*Log[c*(d + e*x)^n])^p/(g*(q + 1))), x] - Dist[b*e*n*(p/(g*(q + 1))), Int[(f + g*x)^(q
+ 1)*((a + b*Log[c*(d + e*x)^n])^(p - 1)/(d + e*x)), x], x] /; FreeQ[{a, b, c, d, e, f, g, n, q}, x] && NeQ[e*
f - d*g, 0] && GtQ[p, 0] && NeQ[q, -1] && IntegersQ[2*p, 2*q] && ( !IGtQ[q, 0] || (EqQ[p, 2] && NeQ[q, 1]))

Rule 2449

Int[Log[(c_.)/((d_) + (e_.)*(x_))]/((f_) + (g_.)*(x_)^2), x_Symbol] :> Dist[-e/g, Subst[Int[Log[2*d*x]/(1 - 2*
d*x), x], x, 1/(d + e*x)], x] /; FreeQ[{c, d, e, f, g}, x] && EqQ[c, 2*d] && EqQ[e^2*f + d^2*g, 0]

Rule 2458

Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_))^(n_.)]*(b_.))^(p_.)*((f_.) + (g_.)*(x_))^(q_.)*((h_.) + (i_.)*(x_))
^(r_.), x_Symbol] :> Dist[1/e, Subst[Int[(g*(x/e))^q*((e*h - d*i)/e + i*(x/e))^r*(a + b*Log[c*x^n])^p, x], x,
d + e*x], x] /; FreeQ[{a, b, c, d, e, f, g, h, i, n, p, q, r}, x] && EqQ[e*f - d*g, 0] && (IGtQ[p, 0] || IGtQ[
r, 0]) && IntegerQ[2*r]

Rule 2495

Int[((a_.) + Log[(c_.)*((d_.)*((e_.) + (f_.)*(x_))^(m_.))^(n_)]*(b_.))^(p_.)*(u_.), x_Symbol] :> Subst[Int[u*(
a + b*Log[c*d^n*(e + f*x)^(m*n)])^p, x], c*d^n*(e + f*x)^(m*n), c*(d*(e + f*x)^m)^n] /; FreeQ[{a, b, c, d, e,
f, m, n, p}, x] &&  !IntegerQ[n] &&  !(EqQ[d, 1] && EqQ[m, 1]) && IntegralFreeQ[IntHide[u*(a + b*Log[c*d^n*(e
+ f*x)^(m*n)])^p, x]]

Rule 6055

Int[((a_.) + ArcTanh[(c_.)*(x_)]*(b_.))^(p_.)/((d_) + (e_.)*(x_)), x_Symbol] :> Simp[(-(a + b*ArcTanh[c*x])^p)
*(Log[2/(1 + e*(x/d))]/e), x] + Dist[b*c*(p/e), Int[(a + b*ArcTanh[c*x])^(p - 1)*(Log[2/(1 + e*(x/d))]/(1 - c^
2*x^2)), x], x] /; FreeQ[{a, b, c, d, e}, x] && IGtQ[p, 0] && EqQ[c^2*d^2 - e^2, 0]

Rule 6131

Int[(((a_.) + ArcTanh[(c_.)*(x_)]*(b_.))^(p_.)*(x_))/((d_) + (e_.)*(x_)^2), x_Symbol] :> Simp[(a + b*ArcTanh[c
*x])^(p + 1)/(b*e*(p + 1)), x] + Dist[1/(c*d), Int[(a + b*ArcTanh[c*x])^p/(1 - c*x), x], x] /; FreeQ[{a, b, c,
 d, e}, x] && EqQ[c^2*d + e, 0] && IGtQ[p, 0]

Rule 6873

Int[u_, x_Symbol] :> With[{v = NormalizeIntegrand[u, x]}, Int[v, x] /; v =!= u]

Rubi steps

\begin {align*} \int (g+h x)^{3/2} \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )^2 \, dx &=\text {Subst}\left (\int (g+h x)^{3/2} \left (a+b \log \left (c d^q (e+f x)^{p q}\right )\right )^2 \, dx,c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )\\ &=\frac {2 (g+h x)^{5/2} \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )^2}{5 h}-\text {Subst}\left (\frac {(4 b f p q) \int \frac {(g+h x)^{5/2} \left (a+b \log \left (c d^q (e+f x)^{p q}\right )\right )}{e+f x} \, dx}{5 h},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )\\ &=\frac {2 (g+h x)^{5/2} \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )^2}{5 h}-\text {Subst}\left (\frac {(4 b p q) \text {Subst}\left (\int \frac {\left (\frac {f g-e h}{f}+\frac {h x}{f}\right )^{5/2} \left (a+b \log \left (c d^q x^{p q}\right )\right )}{x} \, dx,x,e+f x\right )}{5 h},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )\\ &=\frac {2 (g+h x)^{5/2} \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )^2}{5 h}-\text {Subst}\left (\frac {(4 b p q) \text {Subst}\left (\int \left (\frac {f g-e h}{f}+\frac {h x}{f}\right )^{3/2} \left (a+b \log \left (c d^q x^{p q}\right )\right ) \, dx,x,e+f x\right )}{5 f},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )-\text {Subst}\left (\frac {(4 b (f g-e h) p q) \text {Subst}\left (\int \frac {\left (\frac {f g-e h}{f}+\frac {h x}{f}\right )^{3/2} \left (a+b \log \left (c d^q x^{p q}\right )\right )}{x} \, dx,x,e+f x\right )}{5 f h},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )\\ &=-\frac {8 b p q (g+h x)^{5/2} \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )}{25 h}+\frac {2 (g+h x)^{5/2} \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )^2}{5 h}-\text {Subst}\left (\frac {(4 b (f g-e h) p q) \text {Subst}\left (\int \sqrt {\frac {f g-e h}{f}+\frac {h x}{f}} \left (a+b \log \left (c d^q x^{p q}\right )\right ) \, dx,x,e+f x\right )}{5 f^2},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )-\text {Subst}\left (\frac {\left (4 b (f g-e h)^2 p q\right ) \text {Subst}\left (\int \frac {\sqrt {\frac {f g-e h}{f}+\frac {h x}{f}} \left (a+b \log \left (c d^q x^{p q}\right )\right )}{x} \, dx,x,e+f x\right )}{5 f^2 h},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )+\text {Subst}\left (\frac {\left (8 b^2 p^2 q^2\right ) \text {Subst}\left (\int \frac {\left (\frac {f g-e h}{f}+\frac {h x}{f}\right )^{5/2}}{x} \, dx,x,e+f x\right )}{25 h},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )\\ &=\frac {16 b^2 p^2 q^2 (g+h x)^{5/2}}{125 h}-\frac {8 b (f g-e h) p q (g+h x)^{3/2} \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )}{15 f h}-\frac {8 b p q (g+h x)^{5/2} \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )}{25 h}+\frac {2 (g+h x)^{5/2} \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )^2}{5 h}-\text {Subst}\left (\frac {\left (4 b (f g-e h)^2 p q\right ) \text {Subst}\left (\int \frac {a+b \log \left (c d^q x^{p q}\right )}{\sqrt {\frac {f g-e h}{f}+\frac {h x}{f}}} \, dx,x,e+f x\right )}{5 f^3},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )-\text {Subst}\left (\frac {\left (4 b (f g-e h)^3 p q\right ) \text {Subst}\left (\int \frac {a+b \log \left (c d^q x^{p q}\right )}{x \sqrt {\frac {f g-e h}{f}+\frac {h x}{f}}} \, dx,x,e+f x\right )}{5 f^3 h},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )+\text {Subst}\left (\frac {\left (8 b^2 (f g-e h) p^2 q^2\right ) \text {Subst}\left (\int \frac {\left (\frac {f g-e h}{f}+\frac {h x}{f}\right )^{3/2}}{x} \, dx,x,e+f x\right )}{25 f h},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )+\text {Subst}\left (\frac {\left (8 b^2 (f g-e h) p^2 q^2\right ) \text {Subst}\left (\int \frac {\left (\frac {f g-e h}{f}+\frac {h x}{f}\right )^{3/2}}{x} \, dx,x,e+f x\right )}{15 f h},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )\\ &=\frac {128 b^2 (f g-e h) p^2 q^2 (g+h x)^{3/2}}{225 f h}+\frac {16 b^2 p^2 q^2 (g+h x)^{5/2}}{125 h}-\frac {8 b (f g-e h)^2 p q \sqrt {g+h x} \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )}{5 f^2 h}-\frac {8 b (f g-e h) p q (g+h x)^{3/2} \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )}{15 f h}-\frac {8 b p q (g+h x)^{5/2} \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )}{25 h}+\frac {8 b (f g-e h)^{5/2} p q \tanh ^{-1}\left (\frac {\sqrt {f} \sqrt {g+h x}}{\sqrt {f g-e h}}\right ) \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )}{5 f^{5/2} h}+\frac {2 (g+h x)^{5/2} \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )^2}{5 h}+\text {Subst}\left (\frac {\left (8 b^2 (f g-e h)^2 p^2 q^2\right ) \text {Subst}\left (\int \frac {\sqrt {\frac {f g-e h}{f}+\frac {h x}{f}}}{x} \, dx,x,e+f x\right )}{25 f^2 h},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )+\text {Subst}\left (\frac {\left (8 b^2 (f g-e h)^2 p^2 q^2\right ) \text {Subst}\left (\int \frac {\sqrt {\frac {f g-e h}{f}+\frac {h x}{f}}}{x} \, dx,x,e+f x\right )}{15 f^2 h},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )+\text {Subst}\left (\frac {\left (8 b^2 (f g-e h)^2 p^2 q^2\right ) \text {Subst}\left (\int \frac {\sqrt {\frac {f g-e h}{f}+\frac {h x}{f}}}{x} \, dx,x,e+f x\right )}{5 f^2 h},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )+\text {Subst}\left (\frac {\left (4 b^2 (f g-e h)^3 p^2 q^2\right ) \text {Subst}\left (\int -\frac {2 \sqrt {f} \tanh ^{-1}\left (\frac {\sqrt {f} \sqrt {g-\frac {e h}{f}+\frac {h x}{f}}}{\sqrt {f g-e h}}\right )}{\sqrt {f g-e h} x} \, dx,x,e+f x\right )}{5 f^3 h},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )\\ &=\frac {368 b^2 (f g-e h)^2 p^2 q^2 \sqrt {g+h x}}{75 f^2 h}+\frac {128 b^2 (f g-e h) p^2 q^2 (g+h x)^{3/2}}{225 f h}+\frac {16 b^2 p^2 q^2 (g+h x)^{5/2}}{125 h}-\frac {8 b (f g-e h)^2 p q \sqrt {g+h x} \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )}{5 f^2 h}-\frac {8 b (f g-e h) p q (g+h x)^{3/2} \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )}{15 f h}-\frac {8 b p q (g+h x)^{5/2} \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )}{25 h}+\frac {8 b (f g-e h)^{5/2} p q \tanh ^{-1}\left (\frac {\sqrt {f} \sqrt {g+h x}}{\sqrt {f g-e h}}\right ) \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )}{5 f^{5/2} h}+\frac {2 (g+h x)^{5/2} \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )^2}{5 h}-\text {Subst}\left (\frac {\left (8 b^2 (f g-e h)^{5/2} p^2 q^2\right ) \text {Subst}\left (\int \frac {\tanh ^{-1}\left (\frac {\sqrt {f} \sqrt {g-\frac {e h}{f}+\frac {h x}{f}}}{\sqrt {f g-e h}}\right )}{x} \, dx,x,e+f x\right )}{5 f^{5/2} h},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )+\text {Subst}\left (\frac {\left (8 b^2 (f g-e h)^3 p^2 q^2\right ) \text {Subst}\left (\int \frac {1}{x \sqrt {\frac {f g-e h}{f}+\frac {h x}{f}}} \, dx,x,e+f x\right )}{25 f^3 h},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )+\text {Subst}\left (\frac {\left (8 b^2 (f g-e h)^3 p^2 q^2\right ) \text {Subst}\left (\int \frac {1}{x \sqrt {\frac {f g-e h}{f}+\frac {h x}{f}}} \, dx,x,e+f x\right )}{15 f^3 h},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )+\text {Subst}\left (\frac {\left (8 b^2 (f g-e h)^3 p^2 q^2\right ) \text {Subst}\left (\int \frac {1}{x \sqrt {\frac {f g-e h}{f}+\frac {h x}{f}}} \, dx,x,e+f x\right )}{5 f^3 h},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )\\ &=\frac {368 b^2 (f g-e h)^2 p^2 q^2 \sqrt {g+h x}}{75 f^2 h}+\frac {128 b^2 (f g-e h) p^2 q^2 (g+h x)^{3/2}}{225 f h}+\frac {16 b^2 p^2 q^2 (g+h x)^{5/2}}{125 h}-\frac {8 b (f g-e h)^2 p q \sqrt {g+h x} \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )}{5 f^2 h}-\frac {8 b (f g-e h) p q (g+h x)^{3/2} \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )}{15 f h}-\frac {8 b p q (g+h x)^{5/2} \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )}{25 h}+\frac {8 b (f g-e h)^{5/2} p q \tanh ^{-1}\left (\frac {\sqrt {f} \sqrt {g+h x}}{\sqrt {f g-e h}}\right ) \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )}{5 f^{5/2} h}+\frac {2 (g+h x)^{5/2} \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )^2}{5 h}-\text {Subst}\left (\frac {\left (16 b^2 (f g-e h)^{5/2} p^2 q^2\right ) \text {Subst}\left (\int \frac {x \tanh ^{-1}\left (\frac {\sqrt {f} x}{\sqrt {f g-e h}}\right )}{e h+f \left (-g+x^2\right )} \, dx,x,\sqrt {g+h x}\right )}{5 f^{3/2} h},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )+\text {Subst}\left (\frac {\left (16 b^2 (f g-e h)^3 p^2 q^2\right ) \text {Subst}\left (\int \frac {1}{-\frac {f g-e h}{h}+\frac {f x^2}{h}} \, dx,x,\sqrt {g+h x}\right )}{25 f^2 h^2},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )+\text {Subst}\left (\frac {\left (16 b^2 (f g-e h)^3 p^2 q^2\right ) \text {Subst}\left (\int \frac {1}{-\frac {f g-e h}{h}+\frac {f x^2}{h}} \, dx,x,\sqrt {g+h x}\right )}{15 f^2 h^2},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )+\text {Subst}\left (\frac {\left (16 b^2 (f g-e h)^3 p^2 q^2\right ) \text {Subst}\left (\int \frac {1}{-\frac {f g-e h}{h}+\frac {f x^2}{h}} \, dx,x,\sqrt {g+h x}\right )}{5 f^2 h^2},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )\\ &=\frac {368 b^2 (f g-e h)^2 p^2 q^2 \sqrt {g+h x}}{75 f^2 h}+\frac {128 b^2 (f g-e h) p^2 q^2 (g+h x)^{3/2}}{225 f h}+\frac {16 b^2 p^2 q^2 (g+h x)^{5/2}}{125 h}-\frac {368 b^2 (f g-e h)^{5/2} p^2 q^2 \tanh ^{-1}\left (\frac {\sqrt {f} \sqrt {g+h x}}{\sqrt {f g-e h}}\right )}{75 f^{5/2} h}-\frac {8 b (f g-e h)^2 p q \sqrt {g+h x} \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )}{5 f^2 h}-\frac {8 b (f g-e h) p q (g+h x)^{3/2} \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )}{15 f h}-\frac {8 b p q (g+h x)^{5/2} \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )}{25 h}+\frac {8 b (f g-e h)^{5/2} p q \tanh ^{-1}\left (\frac {\sqrt {f} \sqrt {g+h x}}{\sqrt {f g-e h}}\right ) \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )}{5 f^{5/2} h}+\frac {2 (g+h x)^{5/2} \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )^2}{5 h}-\text {Subst}\left (\frac {\left (16 b^2 (f g-e h)^{5/2} p^2 q^2\right ) \text {Subst}\left (\int \frac {x \tanh ^{-1}\left (\frac {\sqrt {f} x}{\sqrt {f g-e h}}\right )}{-f g+e h+f x^2} \, dx,x,\sqrt {g+h x}\right )}{5 f^{3/2} h},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )\\ &=\frac {368 b^2 (f g-e h)^2 p^2 q^2 \sqrt {g+h x}}{75 f^2 h}+\frac {128 b^2 (f g-e h) p^2 q^2 (g+h x)^{3/2}}{225 f h}+\frac {16 b^2 p^2 q^2 (g+h x)^{5/2}}{125 h}-\frac {368 b^2 (f g-e h)^{5/2} p^2 q^2 \tanh ^{-1}\left (\frac {\sqrt {f} \sqrt {g+h x}}{\sqrt {f g-e h}}\right )}{75 f^{5/2} h}-\frac {8 b^2 (f g-e h)^{5/2} p^2 q^2 \tanh ^{-1}\left (\frac {\sqrt {f} \sqrt {g+h x}}{\sqrt {f g-e h}}\right )^2}{5 f^{5/2} h}-\frac {8 b (f g-e h)^2 p q \sqrt {g+h x} \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )}{5 f^2 h}-\frac {8 b (f g-e h) p q (g+h x)^{3/2} \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )}{15 f h}-\frac {8 b p q (g+h x)^{5/2} \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )}{25 h}+\frac {8 b (f g-e h)^{5/2} p q \tanh ^{-1}\left (\frac {\sqrt {f} \sqrt {g+h x}}{\sqrt {f g-e h}}\right ) \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )}{5 f^{5/2} h}+\frac {2 (g+h x)^{5/2} \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )^2}{5 h}+\text {Subst}\left (\frac {\left (16 b^2 (f g-e h)^2 p^2 q^2\right ) \text {Subst}\left (\int \frac {\tanh ^{-1}\left (\frac {\sqrt {f} x}{\sqrt {f g-e h}}\right )}{1-\frac {\sqrt {f} x}{\sqrt {f g-e h}}} \, dx,x,\sqrt {g+h x}\right )}{5 f^2 h},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )\\ &=\frac {368 b^2 (f g-e h)^2 p^2 q^2 \sqrt {g+h x}}{75 f^2 h}+\frac {128 b^2 (f g-e h) p^2 q^2 (g+h x)^{3/2}}{225 f h}+\frac {16 b^2 p^2 q^2 (g+h x)^{5/2}}{125 h}-\frac {368 b^2 (f g-e h)^{5/2} p^2 q^2 \tanh ^{-1}\left (\frac {\sqrt {f} \sqrt {g+h x}}{\sqrt {f g-e h}}\right )}{75 f^{5/2} h}-\frac {8 b^2 (f g-e h)^{5/2} p^2 q^2 \tanh ^{-1}\left (\frac {\sqrt {f} \sqrt {g+h x}}{\sqrt {f g-e h}}\right )^2}{5 f^{5/2} h}-\frac {8 b (f g-e h)^2 p q \sqrt {g+h x} \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )}{5 f^2 h}-\frac {8 b (f g-e h) p q (g+h x)^{3/2} \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )}{15 f h}-\frac {8 b p q (g+h x)^{5/2} \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )}{25 h}+\frac {8 b (f g-e h)^{5/2} p q \tanh ^{-1}\left (\frac {\sqrt {f} \sqrt {g+h x}}{\sqrt {f g-e h}}\right ) \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )}{5 f^{5/2} h}+\frac {2 (g+h x)^{5/2} \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )^2}{5 h}+\frac {16 b^2 (f g-e h)^{5/2} p^2 q^2 \tanh ^{-1}\left (\frac {\sqrt {f} \sqrt {g+h x}}{\sqrt {f g-e h}}\right ) \log \left (\frac {2}{1-\frac {\sqrt {f} \sqrt {g+h x}}{\sqrt {f g-e h}}}\right )}{5 f^{5/2} h}-\text {Subst}\left (\frac {\left (16 b^2 (f g-e h)^2 p^2 q^2\right ) \text {Subst}\left (\int \frac {\log \left (\frac {2}{1-\frac {\sqrt {f} x}{\sqrt {f g-e h}}}\right )}{1-\frac {f x^2}{f g-e h}} \, dx,x,\sqrt {g+h x}\right )}{5 f^2 h},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )\\ &=\frac {368 b^2 (f g-e h)^2 p^2 q^2 \sqrt {g+h x}}{75 f^2 h}+\frac {128 b^2 (f g-e h) p^2 q^2 (g+h x)^{3/2}}{225 f h}+\frac {16 b^2 p^2 q^2 (g+h x)^{5/2}}{125 h}-\frac {368 b^2 (f g-e h)^{5/2} p^2 q^2 \tanh ^{-1}\left (\frac {\sqrt {f} \sqrt {g+h x}}{\sqrt {f g-e h}}\right )}{75 f^{5/2} h}-\frac {8 b^2 (f g-e h)^{5/2} p^2 q^2 \tanh ^{-1}\left (\frac {\sqrt {f} \sqrt {g+h x}}{\sqrt {f g-e h}}\right )^2}{5 f^{5/2} h}-\frac {8 b (f g-e h)^2 p q \sqrt {g+h x} \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )}{5 f^2 h}-\frac {8 b (f g-e h) p q (g+h x)^{3/2} \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )}{15 f h}-\frac {8 b p q (g+h x)^{5/2} \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )}{25 h}+\frac {8 b (f g-e h)^{5/2} p q \tanh ^{-1}\left (\frac {\sqrt {f} \sqrt {g+h x}}{\sqrt {f g-e h}}\right ) \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )}{5 f^{5/2} h}+\frac {2 (g+h x)^{5/2} \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )^2}{5 h}+\frac {16 b^2 (f g-e h)^{5/2} p^2 q^2 \tanh ^{-1}\left (\frac {\sqrt {f} \sqrt {g+h x}}{\sqrt {f g-e h}}\right ) \log \left (\frac {2}{1-\frac {\sqrt {f} \sqrt {g+h x}}{\sqrt {f g-e h}}}\right )}{5 f^{5/2} h}+\text {Subst}\left (\frac {\left (16 b^2 (f g-e h)^{5/2} p^2 q^2\right ) \text {Subst}\left (\int \frac {\log (2 x)}{1-2 x} \, dx,x,\frac {1}{1-\frac {\sqrt {f} \sqrt {g+h x}}{\sqrt {f g-e h}}}\right )}{5 f^{5/2} h},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )\\ &=\frac {368 b^2 (f g-e h)^2 p^2 q^2 \sqrt {g+h x}}{75 f^2 h}+\frac {128 b^2 (f g-e h) p^2 q^2 (g+h x)^{3/2}}{225 f h}+\frac {16 b^2 p^2 q^2 (g+h x)^{5/2}}{125 h}-\frac {368 b^2 (f g-e h)^{5/2} p^2 q^2 \tanh ^{-1}\left (\frac {\sqrt {f} \sqrt {g+h x}}{\sqrt {f g-e h}}\right )}{75 f^{5/2} h}-\frac {8 b^2 (f g-e h)^{5/2} p^2 q^2 \tanh ^{-1}\left (\frac {\sqrt {f} \sqrt {g+h x}}{\sqrt {f g-e h}}\right )^2}{5 f^{5/2} h}-\frac {8 b (f g-e h)^2 p q \sqrt {g+h x} \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )}{5 f^2 h}-\frac {8 b (f g-e h) p q (g+h x)^{3/2} \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )}{15 f h}-\frac {8 b p q (g+h x)^{5/2} \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )}{25 h}+\frac {8 b (f g-e h)^{5/2} p q \tanh ^{-1}\left (\frac {\sqrt {f} \sqrt {g+h x}}{\sqrt {f g-e h}}\right ) \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )}{5 f^{5/2} h}+\frac {2 (g+h x)^{5/2} \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )^2}{5 h}+\frac {16 b^2 (f g-e h)^{5/2} p^2 q^2 \tanh ^{-1}\left (\frac {\sqrt {f} \sqrt {g+h x}}{\sqrt {f g-e h}}\right ) \log \left (\frac {2}{1-\frac {\sqrt {f} \sqrt {g+h x}}{\sqrt {f g-e h}}}\right )}{5 f^{5/2} h}+\frac {8 b^2 (f g-e h)^{5/2} p^2 q^2 \text {Li}_2\left (1-\frac {2}{1-\frac {\sqrt {f} \sqrt {g+h x}}{\sqrt {f g-e h}}}\right )}{5 f^{5/2} h}\\ \end {align*}

________________________________________________________________________________________

Mathematica [C] Result contains higher order function than in optimal. Order 5 vs. order 4 in optimal.
time = 6.62, size = 1168, normalized size = 1.84 \begin {gather*} \frac {2 \left (-\frac {15 b^2 p^2 q^2 \sqrt {g+h x} \left (-10 h (-f g+e h) (e+f x) \, _4F_3\left (-\frac {3}{2},1,1,1;2,2,2;\frac {h (e+f x)}{-f g+e h}\right )+15 e^2 h^2 \, _4F_3\left (-\frac {1}{2},1,1,1;2,2,2;\frac {h (e+f x)}{-f g+e h}\right )+15 e f h^2 x \, _4F_3\left (-\frac {1}{2},1,1,1;2,2,2;\frac {h (e+f x)}{-f g+e h}\right )-4 f^2 g^2 \log (e+f x)+8 e f g h \log (e+f x)-4 e^2 h^2 \log (e+f x)+4 f^2 g^2 \sqrt {\frac {f (g+h x)}{f g-e h}} \log (e+f x)+8 f^2 g h x \sqrt {\frac {f (g+h x)}{f g-e h}} \log (e+f x)+4 f^2 h^2 x^2 \sqrt {\frac {f (g+h x)}{f g-e h}} \log (e+f x)-15 e^2 h^2 \, _3F_2\left (-\frac {1}{2},1,1;2,2;\frac {h (e+f x)}{-f g+e h}\right ) \log (e+f x)-15 e f h^2 x \, _3F_2\left (-\frac {1}{2},1,1;2,2;\frac {h (e+f x)}{-f g+e h}\right ) \log (e+f x)-2 f^2 g^2 \log ^2(e+f x)-e f g h \log ^2(e+f x)+3 e^2 h^2 \log ^2(e+f x)+2 f^2 g^2 \sqrt {\frac {f (g+h x)}{f g-e h}} \log ^2(e+f x)-f^2 g h x \sqrt {\frac {f (g+h x)}{f g-e h}} \log ^2(e+f x)-3 f^2 h^2 x^2 \sqrt {\frac {f (g+h x)}{f g-e h}} \log ^2(e+f x)+10 h (-f g+e h) (e+f x) \, _3F_2\left (-\frac {3}{2},1,1;2,2;\frac {h (e+f x)}{-f g+e h}\right ) (1+\log (e+f x))\right )}{f^2 \sqrt {\frac {f (g+h x)}{f g-e h}}}+\frac {75 b^2 g p^2 q^2 \sqrt {g+h x} \left (3 h (e+f x) \, _4F_3\left (-\frac {1}{2},1,1,1;2,2,2;\frac {h (e+f x)}{-f g+e h}\right )+\log (e+f x) \left (-3 h (e+f x) \, _3F_2\left (-\frac {1}{2},1,1;2,2;\frac {h (e+f x)}{-f g+e h}\right )+\left (e h+f h x \sqrt {\frac {f (g+h x)}{f g-e h}}+f g \left (-1+\sqrt {\frac {f (g+h x)}{f g-e h}}\right )\right ) \log (e+f x)\right )\right )}{f \sqrt {\frac {f (g+h x)}{f g-e h}}}-\frac {50 b g p q \left (6 (f g-e h)^{3/2} \tanh ^{-1}\left (\frac {\sqrt {f} \sqrt {g+h x}}{\sqrt {f g-e h}}\right )+\sqrt {f} \sqrt {g+h x} (6 e h-2 f (4 g+h x)+3 f (g+h x) \log (e+f x))\right ) \left (-a+b p q \log (e+f x)-b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )}{f^{3/2}}+\frac {2 b p q \left (30 \sqrt {f g-e h} \left (2 f^2 g^2+e f g h-3 e^2 h^2\right ) \tanh ^{-1}\left (\frac {\sqrt {f} \sqrt {g+h x}}{\sqrt {f g-e h}}\right )+\sqrt {f} \sqrt {g+h x} \left (90 e^2 h^2-30 e f h (2 g+h x)+2 f^2 \left (-31 g^2+8 g h x+9 h^2 x^2\right )+15 f^2 \left (2 g^2-g h x-3 h^2 x^2\right ) \log (e+f x)\right )\right ) \left (-a+b p q \log (e+f x)-b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )}{f^{5/2}}+45 (g+h x)^{5/2} \left (a-b p q \log (e+f x)+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )^2\right )}{225 h} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[(g + h*x)^(3/2)*(a + b*Log[c*(d*(e + f*x)^p)^q])^2,x]

[Out]

(2*((-15*b^2*p^2*q^2*Sqrt[g + h*x]*(-10*h*(-(f*g) + e*h)*(e + f*x)*HypergeometricPFQ[{-3/2, 1, 1, 1}, {2, 2, 2
}, (h*(e + f*x))/(-(f*g) + e*h)] + 15*e^2*h^2*HypergeometricPFQ[{-1/2, 1, 1, 1}, {2, 2, 2}, (h*(e + f*x))/(-(f
*g) + e*h)] + 15*e*f*h^2*x*HypergeometricPFQ[{-1/2, 1, 1, 1}, {2, 2, 2}, (h*(e + f*x))/(-(f*g) + e*h)] - 4*f^2
*g^2*Log[e + f*x] + 8*e*f*g*h*Log[e + f*x] - 4*e^2*h^2*Log[e + f*x] + 4*f^2*g^2*Sqrt[(f*(g + h*x))/(f*g - e*h)
]*Log[e + f*x] + 8*f^2*g*h*x*Sqrt[(f*(g + h*x))/(f*g - e*h)]*Log[e + f*x] + 4*f^2*h^2*x^2*Sqrt[(f*(g + h*x))/(
f*g - e*h)]*Log[e + f*x] - 15*e^2*h^2*HypergeometricPFQ[{-1/2, 1, 1}, {2, 2}, (h*(e + f*x))/(-(f*g) + e*h)]*Lo
g[e + f*x] - 15*e*f*h^2*x*HypergeometricPFQ[{-1/2, 1, 1}, {2, 2}, (h*(e + f*x))/(-(f*g) + e*h)]*Log[e + f*x] -
 2*f^2*g^2*Log[e + f*x]^2 - e*f*g*h*Log[e + f*x]^2 + 3*e^2*h^2*Log[e + f*x]^2 + 2*f^2*g^2*Sqrt[(f*(g + h*x))/(
f*g - e*h)]*Log[e + f*x]^2 - f^2*g*h*x*Sqrt[(f*(g + h*x))/(f*g - e*h)]*Log[e + f*x]^2 - 3*f^2*h^2*x^2*Sqrt[(f*
(g + h*x))/(f*g - e*h)]*Log[e + f*x]^2 + 10*h*(-(f*g) + e*h)*(e + f*x)*HypergeometricPFQ[{-3/2, 1, 1}, {2, 2},
 (h*(e + f*x))/(-(f*g) + e*h)]*(1 + Log[e + f*x])))/(f^2*Sqrt[(f*(g + h*x))/(f*g - e*h)]) + (75*b^2*g*p^2*q^2*
Sqrt[g + h*x]*(3*h*(e + f*x)*HypergeometricPFQ[{-1/2, 1, 1, 1}, {2, 2, 2}, (h*(e + f*x))/(-(f*g) + e*h)] + Log
[e + f*x]*(-3*h*(e + f*x)*HypergeometricPFQ[{-1/2, 1, 1}, {2, 2}, (h*(e + f*x))/(-(f*g) + e*h)] + (e*h + f*h*x
*Sqrt[(f*(g + h*x))/(f*g - e*h)] + f*g*(-1 + Sqrt[(f*(g + h*x))/(f*g - e*h)]))*Log[e + f*x])))/(f*Sqrt[(f*(g +
 h*x))/(f*g - e*h)]) - (50*b*g*p*q*(6*(f*g - e*h)^(3/2)*ArcTanh[(Sqrt[f]*Sqrt[g + h*x])/Sqrt[f*g - e*h]] + Sqr
t[f]*Sqrt[g + h*x]*(6*e*h - 2*f*(4*g + h*x) + 3*f*(g + h*x)*Log[e + f*x]))*(-a + b*p*q*Log[e + f*x] - b*Log[c*
(d*(e + f*x)^p)^q]))/f^(3/2) + (2*b*p*q*(30*Sqrt[f*g - e*h]*(2*f^2*g^2 + e*f*g*h - 3*e^2*h^2)*ArcTanh[(Sqrt[f]
*Sqrt[g + h*x])/Sqrt[f*g - e*h]] + Sqrt[f]*Sqrt[g + h*x]*(90*e^2*h^2 - 30*e*f*h*(2*g + h*x) + 2*f^2*(-31*g^2 +
 8*g*h*x + 9*h^2*x^2) + 15*f^2*(2*g^2 - g*h*x - 3*h^2*x^2)*Log[e + f*x]))*(-a + b*p*q*Log[e + f*x] - b*Log[c*(
d*(e + f*x)^p)^q]))/f^(5/2) + 45*(g + h*x)^(5/2)*(a - b*p*q*Log[e + f*x] + b*Log[c*(d*(e + f*x)^p)^q])^2))/(22
5*h)

________________________________________________________________________________________

Maple [F]
time = 0.16, size = 0, normalized size = 0.00 \[\int \left (h x +g \right )^{\frac {3}{2}} \left (a +b \ln \left (c \left (d \left (f x +e \right )^{p}\right )^{q}\right )\right )^{2}\, dx\]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((h*x+g)^(3/2)*(a+b*ln(c*(d*(f*x+e)^p)^q))^2,x)

[Out]

int((h*x+g)^(3/2)*(a+b*ln(c*(d*(f*x+e)^p)^q))^2,x)

________________________________________________________________________________________

Maxima [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: ValueError} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((h*x+g)^(3/2)*(a+b*log(c*(d*(f*x+e)^p)^q))^2,x, algorithm="maxima")

[Out]

Exception raised: ValueError >> Computation failed since Maxima requested additional constraints; using the 'a
ssume' command before evaluation *may* help (example of legal syntax is 'assume(%e*h-f*g>0)', see `assume?` fo
r more detai

________________________________________________________________________________________

Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((h*x+g)^(3/2)*(a+b*log(c*(d*(f*x+e)^p)^q))^2,x, algorithm="fricas")

[Out]

integral((b^2*h*x + b^2*g)*sqrt(h*x + g)*log(((f*x + e)^p*d)^q*c)^2 + 2*(a*b*h*x + a*b*g)*sqrt(h*x + g)*log(((
f*x + e)^p*d)^q*c) + (a^2*h*x + a^2*g)*sqrt(h*x + g), x)

________________________________________________________________________________________

Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((h*x+g)**(3/2)*(a+b*ln(c*(d*(f*x+e)**p)**q))**2,x)

[Out]

Timed out

________________________________________________________________________________________

Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((h*x+g)^(3/2)*(a+b*log(c*(d*(f*x+e)^p)^q))^2,x, algorithm="giac")

[Out]

integrate((h*x + g)^(3/2)*(b*log(((f*x + e)^p*d)^q*c) + a)^2, x)

________________________________________________________________________________________

Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int {\left (g+h\,x\right )}^{3/2}\,{\left (a+b\,\ln \left (c\,{\left (d\,{\left (e+f\,x\right )}^p\right )}^q\right )\right )}^2 \,d x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((g + h*x)^(3/2)*(a + b*log(c*(d*(e + f*x)^p)^q))^2,x)

[Out]

int((g + h*x)^(3/2)*(a + b*log(c*(d*(e + f*x)^p)^q))^2, x)

________________________________________________________________________________________